Skip to content

Replace MSVC __debugbreak with cross-compiler DEBUG_BREAK macro.#1540

Merged
codeHusky merged 2 commits intoMCLCE:mainfrom
ModMaker101:feat/msvc-debug-macros
Apr 26, 2026
Merged

Replace MSVC __debugbreak with cross-compiler DEBUG_BREAK macro.#1540
codeHusky merged 2 commits intoMCLCE:mainfrom
ModMaker101:feat/msvc-debug-macros

Conversation

@ModMaker101
Copy link
Copy Markdown
Contributor

Description

Replace MSVC-specific __debugbreak() with DEBUG_BREAK() macro.

Changes

Previous Behavior

__debugbreak() was in the code.

Root Cause

Platform-specific intrinsic used.

New Behavior

DEBUG_BREAK() compiles on MSVC, GCC, and Clang with a fallback.

Fix Implementation

Created a Debug.h with a macro; with a DEBUG_BREAK() macro.

AI Use Disclosure

No.

Related Issues

@codeHusky
Copy link
Copy Markdown
Contributor

Plz pull in the PR workflow fix so your pr can build

@ModMaker101
Copy link
Copy Markdown
Contributor Author

@codeHusky Just pulled in the fix. The PR should build now.

@codeHusky codeHusky merged commit 585455c into MCLCE:main Apr 26, 2026
1 check passed
itsRevela pushed a commit to itsRevela/LCE-Revelations that referenced this pull request Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants